/** 当路由表太长时，可以将其拆分为小模块 **/

import Layout from 'views/layout/layout'

const otherOptionRouter = {
  path: '/otherOption',
  component: Layout,
  redirect: 'noredirect',
  name: 'otherOption',
  meta: {
    title: 'otherOption',
    icon: 'otherOption',
    roles: ['demo']
  },
  children: [
    {
      path: 'businessSchoolManage',
      component: () => import('pages/otherOption/businessSchoolManage/index'),
      redirect: 'noredirect',
      name: 'businessSchoolManage',
      meta: {
        title: 'businessSchoolManage'
      },
      children: [
        {
          path: 'businessSchoolDataManage',
          component: () => import('pages/otherOption/businessSchoolManage/businessSchoolDataManage'),
          name: 'businessSchoolDataManage',
          meta: {
            title: 'businessSchoolDataManage'
          }
        }
      ]
    },
    {
      path: 'bindingSupplierAccount',
      component: () => import('pages/otherOption/bindingSupplierAccount/index'),
      redirect: 'noredirect',
      name: 'bindingSupplierAccount',
      meta: {
        title: 'bindingSupplierAccount'
      },
      children: [
        {
          path: 'bindingOtherAccount',
          component: () => import('pages/otherOption/bindingSupplierAccount/bindingOtherAccount'),
          name: 'bindingOtherAccount',
          meta: {
            title: 'bindingOtherAccount'
          }
        }
      ]
    },
    {
      path: 'consignmentManage',
      component: () => import('pages/otherOption/consignmentManage/index'),
      redirect: 'noredirect',
      name: 'consignmentManage',
      meta: {
        title: 'consignmentManage'
      },
      children: [
        {
          path: 'goodsManage',
          component: () => import('pages/otherOption/consignmentManage/goodsManage'),
          name: 'goodsManage',
          meta: {
            title: 'goodsManage'
          }
        },
        {
          path: 'goodsAuthorization',
          component: () => import('pages/otherOption/consignmentManage/goodsAuthorization'),
          name: 'goodsAuthorization',
          meta: {
            title: 'goodsAuthorization'
          }
        }
      ]
    }
  ]
}

export default otherOptionRouter